/**
 * 工具样式
 */

.color-primary {
  color: @color-primary;
}

.color-danger {
  color: @color-danger;
}

.color-warning {
  color: @color-warning;
}

.color-success {
  color: @color-success;
}

.color-gray {
  color: @color-text;
}

.white-card {
  background-color: #fff;
  padding: 20px 30px;
}

.vision-hide {
  position: absolute;
  left: -1000%;
  top: -1000%;
}

.center {
  display: flex;
  justify-content: center;
}

.abs-center {
  @extend .center;
  align-items: center;
}

.block {
  display: block;
}

.flex {
  display: flex !important;

  &.space-between {
    justify-content: space-between;
  }
}

.inline-flex {
  display: inline-flex;
}

.light-blue-box {
  background: #fafcff;
  border-radius: 2px;
  padding: 20px;
}

.split {
  border-top: 1px solid #e8e8e8;
}

.dialog-footer-btn {
  position: relative;
  padding: 14px;
  text-align: center;
  // border-top: 1px solid #e8e8e8;
  .el-button {
    min-width: 150px;
    font-size: 18px;
    height: 42px;
    // letter-spacing: 8px;
    font-weight: 600;
  }
}

.no-data {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}

.pointer {
  cursor: pointer;
}

.tips {
  text-align: center;
  color: #909399;
}

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card {
  .header {
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    // background: linear-gradient(270deg, rgba(213, 223, 248, 0) 0%, #d6e0f9 100%);
    background: #f0f0f0;

    .title {
      // font-size: 16px;
      // color: #323232;
      line-height: 22px;

      //&::before {
      //  vertical-align: middle;
      //  margin-top: -5px;
      //  display: inline-block;
      //  content: "";
      //  width: 4px;
      //  height: 8px;
      //  background: #0b5fd5;
      //  border-radius: 2px;
      //  box-shadow: 0px 2px 4px 0px rgba(9,78,197,0.30);
      //  margin-right: 10px;
      //}
    }
  }
}

.ml30 {
  margin-left: 30px;
}

.mr30 {
  margin-right: 30px;
}

.mt10 {
  margin-top: 10px;
}
.text-bold {
  font-weight: 600;
}
.f18 {
  font-size: 18px;
}
.tac {
  text-align: center;
}
.m-t-20 {
  margin-top: 20px;
}
.ellipsis-base {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  white-space: break-spaces;
  word-break: break-all;
}

.ellipsis-2:extend(.ellipsis-base) {
  -webkit-line-clamp: 2;
}

.ellipsis-4:extend(.ellipsis-base) {
  -webkit-line-clamp: 4;
}

.tag {
  font-size: 12px;
  color: #fff;
  padding: 0 6px;
  // line-height: 24px;
  border-radius: 2px;
  display: inline-block;
  &.tag-big {
    font-size: 16px;
    color: #fff;
    padding: 0 8px;
    height: 35px;
    line-height: 35px;
    border-radius: 2px;
    display: inline-block;
  }
  & + .tag {
    margin-left: 10px;
  }
  &.width {
    text-align: center;
    letter-spacing: 2px;
    min-width: 84px;
  }
  &.primary {
    background-color: @color-primary;
  }

  &.success {
    background-color: @color-success;
  }

  &.warning {
    background-color: @color-warning;
  }

  &.danger {
    background-color: @color-danger;
  }
}

.top20 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 20%;
}

.work-order-details-buttons {
  //display: inline-block;
  margin-left: 10px;
  display: flex;
  flex-wrap: nowrap;
}

//------------------------------- 2024年7月18日 开始加入的新样式 ----------------------------------------------------------//

// 模块title样式
.module-head {
  // color: @color-primary;
  padding: 0 15px;
  min-height: 40px;
  // background: linear-gradient(to right, #d5e1f8 0%, #fafcfe 100%);
  background: linear-gradient(to right, #0b5fd5 0%, #e6f2ff 100%);
  margin-bottom: 20px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 18px;
  // font-weight: 600;
  // border-bottom: 1px solid #e8e8e8;
  color: #fff;
  .title {
    font-size: 18px;
    display: flex;
    align-items: center;
    // font-weight: 600;
    // &::before {
    //   content: "";
    //   background: url("../../images/title-arrow.png");
    // }
    .arrow {
      height: 20px;
      margin-right: 10px;
    }
  }
  &.touming {
    color: @color-primary;
    background: transparent;
  }
  &.green {
    // color: @color-success;
    background: linear-gradient(to right, #43b808 0%, #eeffe6 100%);
  }
  &.warning {
    // color: @color-warning;
    background: linear-gradient(to right, #ca8b0d 0%, #ffeecd 100%);
  }
}
